#pragma once
#include "Extra Headers.h"
#include "Security.h"


//The vault holds all of the securities. The Building is the house with all the information locked away,
// it keeps track of how many blocks it holds and which one it is currently dealing with.
struct _VAULT
{
	struct _SECURITY * Building;
	struct _SECURITY * CurrentLock;
	int NumberOfLocks;
};

struct _VAULT * Vault_Create();

void Vault_Load_Init(struct _VAULT * V);

void Vault_Enter_Book(struct _VAULT * V,struct _Book * B);

struct _Book * Vault_Return_Book(struct _VAULT * V);

void Vault_Enter_Data(struct _VAULT * V,struct _BUFFER * Info,int InfoKey,struct _BUFFER * Time,int TimeKey);

void Vault_Encrypt(struct _VAULT * V);

void Vault_Decrypt(struct _VAULT * V);